import Taro, {Component} from '@tarojs/taro'
import {View} from '@tarojs/components'
import './customRadio.scss'

export default class CustomRadio extends Component {

  constructor(props) {
    super(props)
  }

  render() {
    let checked
    if (this.props.checked) {
      checked = 'radio-checked'
    } else {
      checked = 'radio-unchecked'
    }
    return (
      <View className={checked} checked={this.props.checked} onClick={this.props.onClick}/>
    )

  }
}
